package com.higgins.client.agentapp.tabs;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.higgins.client.GreetingService;
import com.higgins.client.GreetingServiceAsync;
import com.higgins.client.agentapp.components.AdvertisedJobColumns;
import com.higgins.client.agentapp.components.AdvertisedJobTable;
import com.higgins.client.agentapp.components.JobSiteColumns;
import com.higgins.client.agentapp.components.JobSiteTable;
import com.higgins.client.agentapp.service.AgentAppService;
import com.higgins.client.agentapp.service.AgentAppServiceAsync;

public class AdvertisedJobsTab extends VerticalPanel {
	private final AgentAppServiceAsync agentAppService = GWT
		.create(AgentAppService.class);
	private boolean firstRun = true;
	public AdvertisedJobsTab()	{
	}
	public void update()	{
		if (firstRun)
			initialise();
		else
			refresh();
	}
	
	public void initialise()	{
		AdvertisedJobColumns columns = new AdvertisedJobColumns();
		AdvertisedJobTable table = new AdvertisedJobTable(columns);
		columns.setTable(table);
		
		add(table);
		firstRun = false;
	}
	public void refresh()	{
		
	}

}
